<%--
	author:
	time:2011-5-11 14:32:49
--%>
<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>修改</title>
	<%@include file="/commons/include/upd.jsp" %>
    <script type="text/javascript" src="${ctx}/js/calendar/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
$(function(){
	jQuery("#dataForm").validate(
	{
		rules: {
			password : {
				required: true
			},
			password2 : {
				required: true,
				equalTo : "#password"
			}
		},
		messages: {
			password2 : {
				equalTo : "两次密码输入不一致"
			}
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
	if(${user.userStatus} != 3)
	$("#pid").hide();
});
validCallBack = function()
{
	//添加页面自定义校验
	return true;
};
//刷新树节点
_callback=function()
{
	
}
function changeUserGroups(el) {
	if(el.value == 3) {
		$("#pid").show();
	} else {
		$("#pid").hide();
	}
}
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">个人信息设置</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="myInfo2.htm">
	<table border="0" cellspacing="1" cellpadding="0" class="listTable">
		<tr>
			<td class="form_title">帐号：</td>
			<td class="form_input">${user.account}</td>
		</tr>
		<tr>
			<td class="form_title">密码：</td>
			<td class="form_input"><input size="40" type="password" id="password" name="password" value="${user.password}" /></td>
		</tr>
		<tr>
		  <td class="form_title">确认密码：</td>
		  <td class="form_input"><input size="40" type="password" id="password2" name="password2" value="${user.password}" /></td>
	  </tr>
		<tr>
			<td class="form_title">姓名：</td>
			<td class="form_input">
				<input size="40" type="text" id="name" name="name" value="${user.name}" />
			</td>
		</tr>
		<tr>
		  <td class="form_title">出生日期：</td>
		  <td class="form_input"><input name="dateOfBirth" type="text" id="dateOfBirth" value="<fmt:formatDate pattern='yyyy-MM-dd' value='${user.dateOfBirth}' />" readonly="readonly" class="Wdate" onFocus="WdatePicker({isShowWeek:true})"></td>
	  </tr>
		<tr>
		  <td class="form_title">性别：</td>
		  <td class="form_input"><input type="radio" name="gender" id="gender1" value="1"<c:if test='${user.gender == 1}'> checked</c:if>>
	      男
	        <input type="radio" name="gender" id="gender2" value="2"<c:if test='${user.gender == 2}'> checked</c:if>>
	      女</td>
	  </tr>
		<tr>
		  <td class="form_title">用户性质：</td>
		  <td class="form_input"><c:if test="${user.userNature == 1}"> 公司员工</c:if>
            <c:if test="${user.userNature == 2}"> 经销商或客户</c:if></td>
	  </tr>
		<tr>
		  <td class="form_title">公司：</td>
		  <td class="form_input">${co_name} [${user.coCode}]</td>
	  </tr>
		<tr>
		  <td class="form_title">部门：</td>
		  <td class="form_input">${dep_name} [${user.deptCode}]</td>
	  </tr>
		<tr>
		  <td class="form_title">职位：</td>
		  <td class="form_input"><input name="duty" type="text" id="duty" value="${user.duty}"></td>
	  </tr>
		<tr>
		  <td class="form_title">手机号码：</td>
		  <td class="form_input"><input name="mobile" type="text" id="mobile" value="${user.mobile}"></td>
	  </tr>
		<tr>
		  <td class="form_title">办公电话：</td>
		  <td class="form_input"><input name="phone" type="text" id="phone" value="${user.phone}"></td>
	  </tr>
		<tr>
		  <td class="form_title">传真：</td>
		  <td class="form_input"><input name="fax" type="text" id="fax" value="${user.fax}"></td>
	  </tr>
		<tr>
		  <td class="form_title">EMAIL：</td>
		  <td class="form_input"><input name="email" type="text" id="email" value="${user.email}"></td>
	  </tr>
	</table>
</form>
</body>
</html>
